package com.mentalhealthplatform.global.elasticsearch;

import com.mentalhealthplatform.appModels.Article;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleElasticsearchV2 extends ElasticsearchRepository<Article, Long> {
    List<Article> findByTitleContainingOrContentContaining(String title, String content);
}